-- GENERATED SPELL FOR [Mature Cavern Crawler] --


function spell0_22132(pUnit, Event) --@Toxic Spit,n/a--
pUnit:FullCastSpellOnTarget(7951,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22132', 2500, 1)
end

function Sorts_22132(pUnit, Event)
local choix_sorts_22132 = math.random(0, 0)
if choix_sorts_22132 == 0 then
pUnit:RegisterEvent('spell0_22132', 1, 1)
end
end

function mob22132_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22132', math.random(1500, 3000), 1)
end

function mob22132_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22132_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22132_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22132, 1, 'mob22132_Action')
RegisterUnitEvent(22132, 2, 'mob22132_Leave')
RegisterUnitEvent(22132, 3, 'mob22132_Kill')
RegisterUnitEvent(22132, 4, 'mob22132_Die')
